// 视频搜索
import { get, post } from '@/server/http'

// 视频搜索
export const searchVideoAPI = (userId, keyword) => post(`user/${userId}/searchVideo/1`, { key: keyword })

// 用户搜索
export const searchUserAPI = (userId, keyword) => post(`user/${userId}/searchUser/1`, { key: keyword })
// 关注用户/取消关注用户
export const followUserAPI = (userId, followUserId) => get(`user/${userId}/triggerFollow/${followUserId}`)



//好友主页 - 获取用户信息
export const getFriendUserInfoAPI = (CurrentUserId, userId) => get(`user/${CurrentUserId}/getUserInfo/${userId}`)
// 好友主页 - 作品
export const getFriendUserVideosAPI = (CurrentUserId) => get(`user/${CurrentUserId}/Videos/page/1`)

// 好友主页  关注/取消关注
export const followFriendUserAPI = (CurrentUserId, friendUserId) => get(`user/${CurrentUserId}/triggerFollow/${friendUserId}`)
// 好友主页  关注列表
export const getFriendFollowingsAPI = (CurrentUserId, friendUserId) => get(`user/${CurrentUserId}/Followers/page/1/${friendUserId}`)
// 好友主页 - 关注/取消关注
export const followFriendFollowingAPI = (CurrentUserId, followingId) => get(`user/${CurrentUserId}/triggerFollow/${followingId}`)
// 好友主页  粉丝列表
export const getFriendFansAPI = (CurrentUserId, friendUserId) => get(`user/${CurrentUserId}/Fans/page/1/${friendUserId}`)
